<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <title>确认订单</title>
    <link rel="stylesheet" type="text/css" href="/css/base.css"/>
    <link rel="stylesheet" type="text/css" href="/css/confirm.css"/>
    <link rel="stylesheet" type="text/css" href="/css/mui.min.css"/>
    <link rel="stylesheet" type="text/css" href="/css/loaders.min.css"/>
    <link rel="stylesheet" type="text/css" href="/css/loading.css"/>
	<script src="/js/rem.js"></script>
    <script src="/js/jquery.min.js" type="text/javascript"></script>
	<script src="/js/plugins/jrender/jrender.js"></script>
	<script type="text/javascript">
		sessionStorage.url = "confirm";
		$(window).load(function(){
			$(".loading").addClass("loader-chanage")
			$(".loading").fadeOut(300)
		})
		var d= [{}];
        var count=0;
		$(function () {
			//从本地缓存获取商品id
			var ids = JSON.parse(sessionStorage.getItem("ids"));
            //console.log(ids);
			var money = JSON.parse(sessionStorage.getItem("money"));

			$("#money").html(money);

            $.each(ids ,function (index,id) {
                $.get("/products/"+id,function (data) {
                    count = count+data.count;
                    sessionStorage.setItem("count",count);
                    $("#count").html(count);
                    $("<div class=\"lie clearfloat\" >\n" +
                        "\t\t\t\t\t<a href='/mine/shopping/detail.html?id="+data.id+"'>\n" +
                        "\t\t\t\t\t\t<div class=\"tu clearfloat fl\">\n" +
                        "\t\t\t\t\t\t\t<img src=\""+data.productImg+ "\"/>\n" +
                        "\t\t\t\t\t\t</div>\n" +
                        "\t\t\t\t\t</a>\n" +
                        "\t\t\t\t\t<div class=\"right clearfloat fl\">\n" +
                        "\t\t\t\t\t\t<a href=\"detail.html\">\n" +
                        "\t\t\t\t\t\t\t<p class=\"tit over\" >"+data.productName+"</p>\n" +
                        "\t\t\t\t\t\t\t<p class=\"fu-tit\" >"+data.simpleInfo+"</p>\n" +
                        "\t\t\t\t\t\t</a>\n" +
                        "\t\t\t\t\t\t<div class=\"xia clearfloat\">\n" +
                        "\t\t\t\t\t\t\t<a href=\"detail.html\">\n" +
                        "\t\t\t\t\t\t\t\t<p class=\"jifen fl over\"><samp>"+data.price+"</samp>积分</p>\n" +
                        "\t\t\t\t\t\t\t</a>\n" +
                        "\t\t\t\t\t\t\t<span class=\"fr db\" >×"+data.count+"</span>\n" +
                        "\t\t\t\t\t\t</div>\n" +
                        "\t\t\t\t\t</div>\n" +
                        "\t\t\t\t</div>").appendTo("#products");
                })

            })

            //$(".product").renderValues({list:d});
        })




	</script>
</head>
<!--loading页开始-->
<div class="loading">
	<div class="loader">
        <div class="loader-inner pacman">
          <div></div>
          <div></div>
          <div></div>
          <div></div>
          <div></div>
        </div>
	</div>
</div>
<!--loading页结束-->
	<body>
		<!--header star-->
		<header class="mui-bar mui-bar-nav" style="background-color: #4D4C4B" id="header">
			<a class="btn" href="javascript:history.go(-1)">
	            <i class="iconfont icon-fanhui"></i>
	        </a>
	        <div class="top-sch-box top-sch-boxtwo flex-col">
	                      确认订单
	        </div>
	    </header>
	    <!--header end-->
	    
	    <div class="warp warptwo clearfloat product">
	    	<div class="confirm clearfloat" render-loop="list" id="products">

	    	</div>
	    </div>	    
	    
		<!--settlement star-->
	    <div class="settlement clearfloat">
	    	<div class="zuo clearfloat fl box-s">
	    		共<span id="count">2</span>件  总积分：<span id="money">100000</span>
	    	</div>
	    	<a href="zhifu.html" class="fl db">立即支付
	    	</a>
	    </div>
	    <!--settlement end-->
	    
		<!--footer star-->
	    <footer class="page-footer fixed-footer" id="footer">
			<ul>
				<li>
					<a href="/mine/shopping/shopindex.html">
						<i class="iconfont icon-shouye"></i>
						<p>首页</p>
					</a>
				</li>
				<li>
					<a href="cation.html">
						<i class="iconfont icon-icon04"></i>
						<p>分类</p>
					</a>
				</li>
				<li class="active">
					<a href="shopcar.html">
						<i class="iconfont icon-gouwuche"></i>
						<p>购物车</p>
					</a>
				</li>
				<li>
					<a href="center.html">
						<i class="iconfont icon-yonghuming"></i>
						<p>我的</p>
					</a>
				</li>
			</ul>
		</footer>
		<!--footer end-->
	</body>
	
</html>
